package com.beans.beans_scopes;

import com.beans.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class BeanScopesController2 {

    @Autowired
    private User user1;

    public void getUser() {
        User user = user1;
        System.out.println("B:  " + user);
    }
}
